package com.example.summer_pro.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

@Entity
@Data
@IdClass(ContentJSONKey.class)
@AllArgsConstructor
@NoArgsConstructor
public class ContentJSON {

    @Id
    @Column(name = "q_id")
    private Integer q_id;

    @Id
    @Column(name = "u_id")
    private Integer u_id;

    private String json;
}
